package com.hualude.roadsign.dto;

import com.hualude.roadsign.model.GuardrailEntity;

import java.util.List;

/**
 * Created by xu_jiaHui on 2017/8/18.
 */
public class GuardrailDto {
    private Integer guardrailId;
    private String projectNumber;
    private String guardrailProvince;
    private String guardrailCity;
    private String guardrailArea;
    private String guardrailRoadName;
    private String guardrailStartRoad;
    private String guardrailEndRoad;
    private Integer guardrailType;
    private Integer guardrailMaterial;
    private Integer guardrailColor;
    private String guardrailPhoto;
    private String guardrailInstallTime;
    private String guardrailInstallOrg;
    private Integer guardrailPeriod;
    private Integer guardrailServiceLife;
    private String guardrailRemark;
    private Integer guardrailCreatorId;
    private Integer guardrailModifierId;
    private Integer guardrailOrgId;
    private Integer guardrailMainOrgId;
    private Integer guardrailIsComplete;
    private Integer guardrailRegionId;
    private Integer coordinateId;
    private String guardrailMileage;

    private String guardrailCreatorName; //采集人
    private String guardrailOrgName; //维护单位
    private String guardrailMainOrgName; //监管单位
    private String guardrailPoints; //坐标集
    private Integer elementId; //统一Id
    private String longitude;   //经度集
    private String latitude;    //纬度集
    private List<CoordinateDto> coordinateDtos;

    public Integer getGuardrailId() {
        return guardrailId;
    }

    public void setGuardrailId(Integer guardrailId) {
        this.guardrailId = guardrailId;
    }

    public String getProjectNumber() {
        return projectNumber;
    }

    public void setProjectNumber(String projectNumber) {
        this.projectNumber = projectNumber;
    }

    public String getGuardrailProvince() {
        return guardrailProvince;
    }

    public void setGuardrailProvince(String guardrailProvince) {
        this.guardrailProvince = guardrailProvince;
    }

    public String getGuardrailCity() {
        return guardrailCity;
    }

    public void setGuardrailCity(String guardrailCity) {
        this.guardrailCity = guardrailCity;
    }

    public String getGuardrailArea() {
        return guardrailArea;
    }

    public void setGuardrailArea(String guardrailArea) {
        this.guardrailArea = guardrailArea;
    }

    public String getGuardrailRoadName() {
        return guardrailRoadName;
    }

    public void setGuardrailRoadName(String guardrailRoadName) {
        this.guardrailRoadName = guardrailRoadName;
    }

    public String getGuardrailStartRoad() {
        return guardrailStartRoad;
    }

    public void setGuardrailStartRoad(String guardrailStartRoad) {
        this.guardrailStartRoad = guardrailStartRoad;
    }

    public String getGuardrailEndRoad() {
        return guardrailEndRoad;
    }

    public void setGuardrailEndRoad(String guardrailEndRoad) {
        this.guardrailEndRoad = guardrailEndRoad;
    }

    public Integer getGuardrailType() {
        return guardrailType;
    }

    public void setGuardrailType(Integer guardrailType) {
        this.guardrailType = guardrailType;
    }

    public Integer getGuardrailMaterial() {
        return guardrailMaterial;
    }

    public void setGuardrailMaterial(Integer guardrailMaterial) {
        this.guardrailMaterial = guardrailMaterial;
    }

    public Integer getGuardrailColor() {
        return guardrailColor;
    }

    public void setGuardrailColor(Integer guardrailColor) {
        this.guardrailColor = guardrailColor;
    }

    public String getGuardrailPhoto() {
        return guardrailPhoto;
    }

    public void setGuardrailPhoto(String guardrailPhoto) {
        this.guardrailPhoto = guardrailPhoto;
    }

    public String getGuardrailInstallTime() {
        return guardrailInstallTime;
    }

    public void setGuardrailInstallTime(String guardrailInstallTime) {
        this.guardrailInstallTime = guardrailInstallTime;
    }

    public String getGuardrailInstallOrg() {
        return guardrailInstallOrg;
    }

    public void setGuardrailInstallOrg(String guardrailInstallOrg) {
        this.guardrailInstallOrg = guardrailInstallOrg;
    }

    public Integer getGuardrailPeriod() {
        return guardrailPeriod;
    }

    public void setGuardrailPeriod(Integer guardrailPeriod) {
        this.guardrailPeriod = guardrailPeriod;
    }

    public Integer getGuardrailServiceLife() {
        return guardrailServiceLife;
    }

    public void setGuardrailServiceLife(Integer guardrailServiceLife) {
        this.guardrailServiceLife = guardrailServiceLife;
    }

    public String getGuardrailRemark() {
        return guardrailRemark;
    }

    public void setGuardrailRemark(String guardrailRemark) {
        this.guardrailRemark = guardrailRemark;
    }

    public Integer getGuardrailCreatorId() {
        return guardrailCreatorId;
    }

    public void setGuardrailCreatorId(Integer guardrailCreatorId) {
        this.guardrailCreatorId = guardrailCreatorId;
    }

    public Integer getGuardrailModifierId() {
        return guardrailModifierId;
    }

    public void setGuardrailModifierId(Integer guardrailModifierId) {
        this.guardrailModifierId = guardrailModifierId;
    }

    public Integer getGuardrailOrgId() {
        return guardrailOrgId;
    }

    public void setGuardrailOrgId(Integer guardrailOrgId) {
        this.guardrailOrgId = guardrailOrgId;
    }

    public Integer getGuardrailMainOrgId() {
        return guardrailMainOrgId;
    }

    public void setGuardrailMainOrgId(Integer guardrailMainOrgId) {
        this.guardrailMainOrgId = guardrailMainOrgId;
    }

    public Integer getGuardrailIsComplete() {
        return guardrailIsComplete;
    }

    public void setGuardrailIsComplete(Integer guardrailIsComplete) {
        this.guardrailIsComplete = guardrailIsComplete;
    }

    public Integer getGuardrailRegionId() {
        return guardrailRegionId;
    }

    public void setGuardrailRegionId(Integer guardrailRegionId) {
        this.guardrailRegionId = guardrailRegionId;
    }

    public Integer getCoordinateId() {
        return coordinateId;
    }

    public void setCoordinateId(Integer coordinateId) {
        this.coordinateId = coordinateId;
    }

    public String getGuardrailCreatorName() {
        return guardrailCreatorName;
    }

    public void setGuardrailCreatorName(String guardrailCreatorName) {
        this.guardrailCreatorName = guardrailCreatorName;
    }

    public String getGuardrailOrgName() {
        return guardrailOrgName;
    }

    public void setGuardrailOrgName(String guardrailOrgName) {
        this.guardrailOrgName = guardrailOrgName;
    }

    public String getGuardrailMainOrgName() {
        return guardrailMainOrgName;
    }

    public void setGuardrailMainOrgName(String guardrailMainOrgName) {
        this.guardrailMainOrgName = guardrailMainOrgName;
    }

    public String getGuardrailPoints() {
        return guardrailPoints;
    }

    public void setGuardrailPoints(String guardrailPoints) {
        this.guardrailPoints = guardrailPoints;
    }

    public Integer getElementId() {
        return elementId;
    }

    public void setElementId(Integer elementId) {
        this.elementId = elementId;
    }

    public String getLongitude() {
        return longitude;
    }

    public void setLongitude(String longitude) {
        this.longitude = longitude;
    }

    public String getLatitude() {
        return latitude;
    }

    public void setLatitude(String latitude) {
        this.latitude = latitude;
    }

    public String getGuardrailMileage() {
        return guardrailMileage;
    }

    public void setGuardrailMileage(String guardrailMileage) {
        this.guardrailMileage = guardrailMileage;
    }

    public List<CoordinateDto> getCoordinateDtos() {
        return coordinateDtos;
    }

    public void setCoordinateDtos(List<CoordinateDto> coordinateDtos) {
        this.coordinateDtos = coordinateDtos;
    }

    public GuardrailEntity toBean() {
        GuardrailEntity guardrailEntity = new GuardrailEntity();
        guardrailEntity.setProjectNumber(projectNumber);
        guardrailEntity.setGuardrailRegionId(guardrailRegionId);
        guardrailEntity.setGuardrailProvince(guardrailProvince);
        guardrailEntity.setGuardrailCity(guardrailCity);
        guardrailEntity.setGuardrailArea(guardrailArea);
        guardrailEntity.setGuardrailRoadName(guardrailRoadName);
        guardrailEntity.setGuardrailStartRoad(guardrailStartRoad);
        guardrailEntity.setGuardrailEndRoad(guardrailEndRoad);
        guardrailEntity.setGuardrailType(guardrailType);
        guardrailEntity.setGuardrailMaterial(guardrailMaterial);
        guardrailEntity.setGuardrailColor(guardrailColor);
        guardrailEntity.setGuardrailPhoto(guardrailPhoto);
        guardrailEntity.setGuardrailInstallTime(guardrailInstallTime);
        guardrailEntity.setGuardrailInstallOrg(guardrailInstallOrg);
        guardrailEntity.setGuardrailPeriod(guardrailPeriod);
        guardrailEntity.setGuardrailServiceLife(guardrailServiceLife);
        guardrailEntity.setGuardrailRemark(guardrailRemark);
        guardrailEntity.setGuardrailCreatorId(guardrailCreatorId);
        guardrailEntity.setGuardrailModifierId(guardrailModifierId);
        guardrailEntity.setGuardrailOrgId(guardrailOrgId);
        guardrailEntity.setGuardrailMainOrgId(guardrailMainOrgId);
        guardrailEntity.setGuardrailIsComplete(0);
        guardrailEntity.setGuardrailMileage(guardrailMileage);
        return guardrailEntity;

    }

}
